package demo

import (
	v1 "github.com/flipped-aurora/gin-vue-admin/server/api/v1"
	"github.com/flipped-aurora/gin-vue-admin/server/middleware"
	"github.com/gin-gonic/gin"
)

type SysStudentRouter struct {
}

// InitSysStudentRouter 初始化 SysStudent 路由信息
func (s *SysStudentRouter) InitSysStudentRouter(Router *gin.RouterGroup) {
	sysStudentRouter := Router.Group("sysStudent").Use(middleware.OperationRecord())
	sysStudentRouterWithoutRecord := Router.Group("sysStudent")
	var sysStudentApi = v1.ApiGroupApp.DemoApiGroup.SysStudentApi
	{
		sysStudentRouter.POST("createSysStudent", sysStudentApi.CreateSysStudent)             // 新建SysStudent
		sysStudentRouter.DELETE("deleteSysStudent", sysStudentApi.DeleteSysStudent)           // 删除SysStudent
		sysStudentRouter.DELETE("deleteSysStudentByIds", sysStudentApi.DeleteSysStudentByIds) // 批量删除SysStudent
		sysStudentRouter.PUT("updateSysStudent", sysStudentApi.UpdateSysStudent)              // 更新SysStudent
	}
	{
		sysStudentRouterWithoutRecord.GET("findSysStudent", sysStudentApi.FindSysStudent)       // 根据ID获取SysStudent
		sysStudentRouterWithoutRecord.GET("getSysStudentList", sysStudentApi.GetSysStudentList) // 获取SysStudent列表
	}
}
